<template>
	<div class="page">
		<p class="title">基本用法</p>
		<p>
			<gr-input v-model="birthday" suffix-icon="arrow-right-bold" @click="showDatePicker" @icon-click="showDatePicker" />
		</p>
		<gr-popup v-model="isShowDatePicker">
			<gr-datepicker v-model="birthday" @confirm="hideDatePicker" @cancel="hideDatePicker"></gr-datepicker>
		</gr-popup>
	</div>
</template>

<script>
	export default {
		data() {
			return {
				username: '',
				birthday: '1986-10-30',
				isShowDatePicker: false
			}
		},
		mounted() {
			
		},
		methods: {
			showDatePicker() {
				this.isShowDatePicker = true;
			},
			hideDatePicker() {
				this.isShowDatePicker = false;
			}
		}
	}
</script>

<style lang="scss">
	.page {
		padding: 0 10px;
	}
</style>
